import request from '../request'
/**
 * 
 * @param {用户管理} 列表 
 * @returns 
 */
export function systemUserListApi(params) {
    return request({
        url: '/system/user/list',
        method: 'get',
        params
    })
}
// 新增用户
export function systemAddUserApi(data) {
    return request({
        url: '/system/user/add',
        method: 'post',
        data
    })
}
// 修改用户
export function systemEditUserApi(data) {
    return request({
        url: '/system/user/edit',
        method: 'put',
        data
    })
}
// 删除用户
export function systemDelUserApi(data) {
    return request({
        url: '/system/user/delete',
        method: 'delete',
        data: {
            ids: data
        }
    })
}

/**
 * 
 * @param {会员设置} 列表 
 * @returns 
 */
// 会员设置列表
export function systemMemberListApi(params) {
    return request({
        url: '/system/member/list',
        method: 'get',
        params
    })
}
// 会员设置新增
export function systemAddMemberApi(data) {
    return request({
        url: '/system/member/add',
        method: 'post',
        data
    })
}
// 会员设置修改
export function systemEditMemberApi(data) {
    return request({
        url: '/system/member/edit',
        method: 'put',
        data
    })
}
// 会员设置删除
export function systemDelMemberApi(data) {
    return request({
        url: '/system/member/delete',
        method: 'delete',
        data: {
            ids: data
        }
    })
}

/**
 * @param {菜单管理} 列表
 * @returns 
 */
// 菜单管理列表
export function systemMenuListApi(params) {
    return request({
        url: '/system/menu/list',
        method: 'get',
        params
    })
}
// 菜单管理新增
export function systemAddMenuApi(data) {
    return request({
        url: '/system/menu/add',
        method: 'post',
        data
    })
}
// 菜单管理修改
export function systemEditMenuApi(data) {
    return request({
        url: '/system/menu/edit',
        method: 'put',
        data
    })
}
// 菜单管理删除
export function systemDelMenuApi(data) {
    return request({
        url: '/system/menu/delete',
        method: 'delete',
        data: {
            ids: data
        }
    })
}
/**
 * 
 * @param {字典管理} 列表 
 * @returns 
 */
export function systemDictListApi(params) {
    return request({
        url: '/system/dict/list',
        method: 'get',
        params
    })
}
// 字典管理新增
export function systemAddDictApi(data) {
    return request({
        url: '/system/dict/add',
        method: 'post',
        data
    })
}
// 字典管理修改
export function systemEditDictApi(data) {
    return request({
        url: '/system/dict/edit',
        method: 'put',
        data
    })
}
// 字典管理删除
export function systemDelDictApi(data) {
    return request({
        url: '/system/dict/delete',
        method: 'delete',
        data: {
            ids: data
        }
    })
}
/**
 * @param {日志管理} 列表
 */
export function systemLogListApi(params) {
    return request({
        url: '/system/log/list',
        method: 'get',
        params
    })    
}

/**
 * @param {权益明细} 列表
 */
// 权益明细列表
export function systemEquityListApi(params) {
    return request({
        url: '/system/equity/list',
        method: 'get',
        params
    })
}
// 权益明细新增
export function systemEquityAddApi(data) {
    return request({
        url: '/system/equity/add',
        method: 'post',
        data
    })
}
// 权益明细编辑
export function systemEquityEditApi(data) {
    return request({
        url: '/system/equity/edit',
        method: 'put',
        data
    })
}
// 权益明细删除
export function systemEquityDelApi(data) {
    return request({
        url: '/system/equity/delete',
        method: 'delete',
        data: {
            ids: data
        }
    })
}
// 权益明细详情
export function systemEquityInfoApi(id) {
    return request({
        url: '/system/equity/info?id='+id,
        method: 'get',
    })
}
/**
 * @param {默认头像} 
 *  列表
 */
export function systemAvatarListApi(params) {
    return request({
        url: '/system/avatar/list', 
        method: 'get',
        params
    })
}
// 修改默认头像
export function systemAvatarEditApi(data) {
    return request({
        url: '/system/avatar/edit',
        method: 'put',
        data
    })
}
// 删除默认头像
export function systemAvatarDelApi(id) {
    return request({
        url: '/system/avatar/delete',
        method: 'delete',
        data: {
            id
        }
    })
}